using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace project
{
    public partial class MasterHome : Form
    {
        public MasterHome()
        {
            InitializeComponent();
        }

        private void MasterHome_Load(object sender, EventArgs e)
        {

        }

        private void button1_Click(object sender, EventArgs e)
        {
            Program.Invoke(this, "project.Magazine");

        }

        private void MasterHome_FormClosed(object sender, FormClosedEventArgs e)
        {
            if (Application.OpenForms.Count == 1)
            {
                Program.main_form.Show();
            }
        }

        private void button2_Click(object sender, EventArgs e)
        {
            Program.Invoke(this, "project.Retailer");
        }

        private void button4_Click(object sender, EventArgs e)
        {
            Program.Invoke(this, "project.NewStaff");
        }

        private void button5_Click(object sender, EventArgs e)
        {
            Program.Invoke(this, "project.Expenses");
        }

        private void button3_Click(object sender, EventArgs e)
        {
            Program.Invoke(this, "project.Publisher");
        }
    }
}